<div class="list-company clearFix">
	<div class="head">
		<div class="checkbox">&nbsp;</div>
		<div class="name" align="center"><h4>Company Name</h4></div>
		<div class="contactname" align="center"><h4>Contact Name</h4></div>
		<div class="tel" align="center"><h4>tel</h4></div>
		<div class="email" align="center"><h4>email</h4></div>
		<div class="cons" align="center"><h4>Consultant</h4></div>
		<div class="edit" align="center"><h4>Edit</h4></div>
		<div class="action" align="center"><h4>Comment</h4></div>
	</div>
	<?php 
	$num = 1; 
	$companyMapper = new Default_Model_CompanyMapper();
	foreach($this->paginator as $rs) { 
		$comment = $companyMapper->getComments($rs['company_id'], 1);
	?>
	<div class="info-content" style="clear:both">
		<div class="checkbox">
			<input type="checkbox" name="company_chk[]" value="<?php echo $rs['company_id']; ?>">
		</div>
		<div class="name">
			<a href="#view_company" class="view_company" id="<?php echo $rs['company_id']?>">
				<?php echo $rs['company_name'] ?>&nbsp;		    
			</a>
		</div>
		<div class="contactname" align="left">
			<?php echo $rs['full_name']; ?><?php echo ($rs['full_name'])?'('.$rs['title'].')<br />':''; ?>	
			<?php echo ($rs['job_title'])?$rs['job_title']."<br />":''; ?>
			<?php echo ($rs['mobile'])?$rs['mobile'] . "<br />":''; ?>
			<?php echo $rs['ct_email']; ?>
		</div>
		<div class="tel">
			<?php echo $rs['tel'] ?>&nbsp;
		</div>
		<div class="email">
			<?php echo $rs['email'] ?>&nbsp;
		</div>
		<div class="cons" align="center">
			<?php echo $rs['assign_cons'] ?>&nbsp;
		</div>
		<div class="edit">
			<a href="/company/add-company/id/<?php echo $rs['company_id'] ?>" class="editcom">Edit</a>
		</div>
		<div class="action">
			<a href="#comment" class="addcomment" id="<?php echo $rs['company_id']?>">Add Comment</a> &nbsp; &nbsp;
			<a href="#allcomment"  class="allcomment" id="<?php echo $rs['company_id']?>">View all</a>
			<p style="max-width:250px;" class="info-comment" id="viewcomment<?php echo $rs['company_id']?>">
			<?php if($comment):?>
				- <?php echo substr($comment['content'], 0, 90);?>
			<?php endif;?>		
			</p>
		</div>
	</div>
	<?php $num++; } ?>
</div>